<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        * {
            padding: 0;
            margin: 0;
        }

        body {
            perspective: 800px;
            transform-style: preserve-3d;
            perspective-origin: 300px 300px;
        }

        @keyframes change {
            0%{
                transform: rotateX(-45deg) rotateY(90deg);
            }
            100%{
                transform: rotateX(45deg) rotateY(90deg);
            }
        }

        div {
            position: absolute;
            left: 200px;
            top: 200px;
            width: 200px;
            height: 200px;
            background-image: url("./pic1.jpeg");
            background-size: cover;
            transform-origin: 0 0;
            animation: change 2s linear infinite alternate;
        }

    </style>


</head>
<body>
    <div></div>
</body>
</html>